<template>
  <!-- 医保电子-->
  <div>
    <YiBaoTop />
    <YiBao :ybdz="ybdz" />
    <YiBaoDz :ybdianzi="ybdianzi" />
    <router-view />
  </div>
</template>

<script>
//先引用--封装好的link.js
import link from "@/api/link.js";
import YiBao from "@/components/life/YiBao/YiBao.vue";
import YiBaoTop from "@/components/life/YiBao/YiBaoTop.vue";
import YiBaoDz from "@/components/life/YiBao/YiBaoDz.vue";
export default {
  components: {
    YiBao,
    YiBaoTop,
    YiBaoDz,
  },
  data() {
    return {
      ybdz: [],
      ybdianzi: [],
    };
  },
  mounted() {
    //医保电子
    link("user/life9/datamock").then(({ data }) => {
      console.log(data);
      this.ybdz = data.ybdz;
    });
    link("user/life10/datamock").then(({ data }) => {
      console.log(data);
      this.ybdianzi = data.ybdianzi;
    });
  },
};
</script>

<style>
</style>